package com.pojo;

import java.io.Serializable;
import java.util.Date;

public class Orders implements Serializable {

    private Integer oId;    //订单编号
    private User user;    //用户编码
    private Double totals;  //价格
    private String orderStatus; //订单状态
    private Date buyingTime;    //购买时间

    public Integer getoId() {
        return oId;
    }

    public void setoId(Integer oId) {
        this.oId = oId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Double getTotals() {
        return totals;
    }

    public void setTotals(Double totals) {
        this.totals = totals;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Date getBuyingTime() {
        return buyingTime;
    }

    public void setBuyingTime(Date buyingTime) {
        this.buyingTime = buyingTime;
    }

    public Orders(Integer oId, User user, Double totals, String orderStatus, Date buyingTime) {
        this.oId = oId;
        this.user = user;
        this.totals = totals;
        this.orderStatus = orderStatus;
        this.buyingTime = buyingTime;
    }

    public Orders() {
    }

    @Override
    public String toString() {
        return "Orders{" +
                "oId=" + oId +
                ", user=" + user +
                ", totals=" + totals +
                ", orderStatus='" + orderStatus + '\'' +
                ", buyingTime=" + buyingTime +
                '}';
    }
}
